package com.yowosoft.test;

import com.yowosoft.util.WeixinUtil;

public class WeixinUpload {
	public static void main(String[] args) {
		try {
			String tokenString = "nrLtUt9OEk-sIDahKcJsdD9f4IUXWQ9ohE94paAjRGPfLVkJphWx7DpcW2kMTRMDZ6IejHEW1nAUMSJLTLmRO329Gdx6P3AHVITCWaj0Vrf-yj4682PB0oJRMcsFqkyYBMOaAGAKVX";
			String path = "D:/imooc.jpg";   //素材上传路径
			String mediaId = WeixinUtil.upload(path, tokenString, "thumb");
			System.out.println(mediaId);  
		} catch (Exception e) {
			e.printStackTrace();
		}

	}
}
//mediaID：vYwYNaRD6cJLoeaXkCRm7rOU4bkVFCmTyn2Aa6XoQ3K1VPJcwcbUSiDOSm-Yxhar